﻿// MT201




using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category2
{
  public class MT201 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;
    private static SwiftTagDefinition U0004;
    private static SwiftTagSubItemDefinition U0005;
    private static SwiftTagDefinition U0006;
    private static SwiftTagSubItemDefinition U0007;
    private static SwiftTagSubItemDefinition U0008;
    private static SwiftTagDefinition U000E;
    private static SwiftTagSubItemDefinition U000F;
    private static SwiftTagSubItemDefinition U0010;
    private static SwiftTagSubItemDefinition U0011;
    private static SwiftTagSubItemDefinition U0012;
    private static SwiftTagSubItemDefinition U0013;
    private static SwiftTagSubItemDefinition U0014;
    private static SwiftTagSequenceDefinition U0015;
    private static SwiftTagDefinition U0016;
    private static SwiftTagSubItemDefinition U0017;
    private static SwiftTagDefinition U0018;
    private static SwiftTagSubItemDefinition U0019;
    private static SwiftTagSubItemDefinition U001A;
    private static SwiftTagChoiceDefinition U001B;
    private static SwiftTagDefinition U001C;
    private static SwiftTagSubItemDefinition U001D;
    private static SwiftTagSubItemDefinition U001E;
    private static SwiftTagDefinition U001F;
    private static SwiftTagSubItemDefinition U007F;
    private static SwiftTagSubItemDefinition U0080;
    private static SwiftTagChoiceDefinition U0081;
    private static SwiftTagDefinition U0082;
    private static SwiftTagSubItemDefinition U0083;
    private static SwiftTagSubItemDefinition U0084;
    private static SwiftTagDefinition U0086;
    private static SwiftTagSubItemDefinition U0087;
    private static SwiftTagSubItemDefinition U0088;
    private static SwiftTagDefinition U0089;
    private static SwiftTagSubItemDefinition U008A;
    private static SwiftTagSubItemDefinition U008B;
    private static SwiftTagDefinition U008C;
    private static SwiftTagSubItemDefinition U008D;
    private static SwiftTagSubItemDefinition U008E;
    private static SwiftTagSubItemDefinition U008F;
    private static SwiftTagSubItemDefinition U0090;
    private static SwiftTagSubItemDefinition U0091;
    private static SwiftTagSubItemDefinition U0092;

    [Description("Sum of Amounts")]
    public Tag19 SumOfAmounts_19
    {
      get
      {
        return new Tag19((SwiftElement) this, 0, (SwiftDefinitionElement) MT201.U0002);
      }
    }

    [Description("Sum of Amounts")]
    public Tag19 Tag19_SumOfAmounts
    {
      get
      {
        return this.SumOfAmounts_19;
      }
    }

    [Description("Value Date")]
    public Tag30 ValueDate_30
    {
      get
      {
        return new Tag30((SwiftElement) this, 0, (SwiftDefinitionElement) MT201.U0004);
      }
    }

    [Description("Value Date")]
    public Tag30 Tag30_ValueDate
    {
      get
      {
        return this.ValueDate_30;
      }
    }

    [Description("Sender’s Correspondent")]
    public MT201.Tag53B SendersCorrespondent_53B
    {
      get
      {
        return new MT201.Tag53B((SwiftElement) this, 0, (SwiftDefinitionElement) MT201.U0006);
      }
    }

    [Description("Sender’s Correspondent")]
    public MT201.Tag53B Tag53B_SendersCorrespondent
    {
      get
      {
        return this.SendersCorrespondent_53B;
      }
    }

    [Description("Sender to Receiver Information")]
    public Tag72 SenderToReceiverInformation_1_72
    {
      get
      {
        return new Tag72((SwiftElement) this, 0, (SwiftDefinitionElement) MT201.U000E);
      }
    }

    [Description("Sender to Receiver Information")]
    public Tag72 Tag72_SenderToReceiverInformation_1
    {
      get
      {
        return this.SenderToReceiverInformation_1_72;
      }
    }

    [Description("Transaction Sequence ")]
    public MT201.Transaction_SequenceClass Transaction_Sequence
    {
      get
      {
        return new MT201.Transaction_SequenceClass((SwiftElement) this, 0, false);
      }
    }

    public MT201()
      : base(true)
    {
    }

    public MT201(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT201.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT201.MessageDefinition = new SwiftMessageDefinition("MT201", "Multiple Financial Institution Transfer for its Own Account");
      MT201.U0002 = new SwiftTagDefinition("SumOfAmounts_19", "Sum of Amounts");
      MT201.U0002.TagName = ":19:";
      MT201.U0003 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT201.U0002.Elements.Add((SwiftDefinitionElement) MT201.U0003);
      MT201.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT201.U0002);
      MT201.U0004 = new SwiftTagDefinition("ValueDate_30", "Value Date");
      MT201.U0004.TagName = ":30:";
      MT201.U0005 = new SwiftTagSubItemDefinition("Date", "Date");
      MT201.U0004.Elements.Add((SwiftDefinitionElement) MT201.U0005);
      MT201.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT201.U0004);
      MT201.U0006 = new SwiftTagDefinition("SendersCorrespondent_53B", "Sender’s Correspondent");
      MT201.U0006.TagName = ":53B:";
      MT201.U0006.Mandatory = false;
      MT201.U0007 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT201.U0007.Mandatory = false;
      MT201.U0006.Elements.Add((SwiftDefinitionElement) MT201.U0007);
      MT201.U0008 = new SwiftTagSubItemDefinition("Location", "");
      MT201.U0008.Mandatory = false;
      MT201.U0006.Elements.Add((SwiftDefinitionElement) MT201.U0008);
      MT201.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT201.U0006);
      MT201.U000E = new SwiftTagDefinition("SenderToReceiverInformation_1_72", "Sender to Receiver Information");
      MT201.U000E.TagName = ":72:";
      MT201.U000E.Mandatory = false;
      MT201.U000F = new SwiftTagSubItemDefinition("Line1", "Line with a maximum of 35 SWIFT characters");
      MT201.U000E.Elements.Add((SwiftDefinitionElement) MT201.U000F);
      MT201.U0010 = new SwiftTagSubItemDefinition("Line2", "Line with a maximum of 35 SWIFT characters");
      MT201.U0010.Mandatory = false;
      MT201.U000E.Elements.Add((SwiftDefinitionElement) MT201.U0010);
      MT201.U0011 = new SwiftTagSubItemDefinition("Line3", "Line with a maximum of 35 SWIFT characters");
      MT201.U0011.Mandatory = false;
      MT201.U000E.Elements.Add((SwiftDefinitionElement) MT201.U0011);
      MT201.U0012 = new SwiftTagSubItemDefinition("Line4", "Line with a maximum of 35 SWIFT characters");
      MT201.U0012.Mandatory = false;
      MT201.U000E.Elements.Add((SwiftDefinitionElement) MT201.U0012);
      MT201.U0013 = new SwiftTagSubItemDefinition("Line5", "Line with a maximum of 35 SWIFT characters");
      MT201.U0013.Mandatory = false;
      MT201.U000E.Elements.Add((SwiftDefinitionElement) MT201.U0013);
      MT201.U0014 = new SwiftTagSubItemDefinition("Line6", "Line with a maximum of 35 SWIFT characters");
      MT201.U0014.Mandatory = false;
      MT201.U000E.Elements.Add((SwiftDefinitionElement) MT201.U0014);
      MT201.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT201.U000E);
      MT201.U0015 = new SwiftTagSequenceDefinition("Transaction_Sequence", "Transaction Sequence ");
      MT201.U0016 = new SwiftTagDefinition("TransactionReferenceNumber_20", "Transaction Reference Number");
      MT201.U0016.TagName = ":20:";
      MT201.U0017 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT201.U0016.Elements.Add((SwiftDefinitionElement) MT201.U0017);
      MT201.U0015.Elements.Add((SwiftDefinitionElement) MT201.U0016);
      MT201.U0018 = new SwiftTagDefinition("CurrencyCodeAmount_32B", "Currency Code Amount");
      MT201.U0018.TagName = ":32B:";
      MT201.U0019 = new SwiftTagSubItemDefinition("Currency", "Currency Code");
      MT201.U0018.Elements.Add((SwiftDefinitionElement) MT201.U0019);
      MT201.U001A = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT201.U0018.Elements.Add((SwiftDefinitionElement) MT201.U001A);
      MT201.U0015.Elements.Add((SwiftDefinitionElement) MT201.U0018);
      MT201.U001B = new SwiftTagChoiceDefinition("Choice", "");
      MT201.U001B.Mandatory = false;
      MT201.U001B.Multiple = true;
      MT201.U001C = new SwiftTagDefinition("Intermediary_56A", "Intermediary");
      MT201.U001C.TagName = ":56A:";
      MT201.U001D = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT201.U001D.Mandatory = false;
      MT201.U001C.Elements.Add((SwiftDefinitionElement) MT201.U001D);
      MT201.U001E = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT201.U001C.Elements.Add((SwiftDefinitionElement) MT201.U001E);
      MT201.U001B.Elements.Add((SwiftDefinitionElement) MT201.U001C);
      MT201.U001F = new SwiftTagDefinition("Intermediary_56D", "Intermediary");
      MT201.U001F.TagName = ":56D:";
      MT201.U007F = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT201.U007F.Mandatory = false;
      MT201.U001F.Elements.Add((SwiftDefinitionElement) MT201.U007F);
      MT201.U0080 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT201.U001F.Elements.Add((SwiftDefinitionElement) MT201.U0080);
      MT201.U001B.Elements.Add((SwiftDefinitionElement) MT201.U001F);
      MT201.U0015.Elements.Add((SwiftDefinitionElement) MT201.U001B);
      MT201.U0081 = new SwiftTagChoiceDefinition("Choice", "");
      MT201.U0081.Multiple = true;
      MT201.U0082 = new SwiftTagDefinition("AccountWithInstitution_57A", "Account With Institution");
      MT201.U0082.TagName = ":57A:";
      MT201.U0083 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT201.U0083.Mandatory = false;
      MT201.U0082.Elements.Add((SwiftDefinitionElement) MT201.U0083);
      MT201.U0084 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT201.U0082.Elements.Add((SwiftDefinitionElement) MT201.U0084);
      MT201.U0081.Elements.Add((SwiftDefinitionElement) MT201.U0082);
      MT201.U0086 = new SwiftTagDefinition("AccountWithInstitution_57B", "Account With Institution");
      MT201.U0086.TagName = ":57B:";
      MT201.U0087 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT201.U0087.Mandatory = false;
      MT201.U0086.Elements.Add((SwiftDefinitionElement) MT201.U0087);
      MT201.U0088 = new SwiftTagSubItemDefinition("Location", "");
      MT201.U0088.Mandatory = false;
      MT201.U0086.Elements.Add((SwiftDefinitionElement) MT201.U0088);
      MT201.U0081.Elements.Add((SwiftDefinitionElement) MT201.U0086);
      MT201.U0089 = new SwiftTagDefinition("AccountWithInstitution_57D", "Account With Institution");
      MT201.U0089.TagName = ":57D:";
      MT201.U008A = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT201.U008A.Mandatory = false;
      MT201.U0089.Elements.Add((SwiftDefinitionElement) MT201.U008A);
      MT201.U008B = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT201.U0089.Elements.Add((SwiftDefinitionElement) MT201.U008B);
      MT201.U0081.Elements.Add((SwiftDefinitionElement) MT201.U0089);
      MT201.U0015.Elements.Add((SwiftDefinitionElement) MT201.U0081);
      MT201.U008C = new SwiftTagDefinition("SenderToReceiverInformation_2_72", "Sender to Receiver Information");
      MT201.U008C.TagName = ":72:";
      MT201.U008C.Mandatory = false;
      MT201.U008D = new SwiftTagSubItemDefinition("Line1", "Line with a maximum of 35 SWIFT characters");
      MT201.U008C.Elements.Add((SwiftDefinitionElement) MT201.U008D);
      MT201.U008E = new SwiftTagSubItemDefinition("Line2", "Line with a maximum of 35 SWIFT characters");
      MT201.U008E.Mandatory = false;
      MT201.U008C.Elements.Add((SwiftDefinitionElement) MT201.U008E);
      MT201.U008F = new SwiftTagSubItemDefinition("Line3", "Line with a maximum of 35 SWIFT characters");
      MT201.U008F.Mandatory = false;
      MT201.U008C.Elements.Add((SwiftDefinitionElement) MT201.U008F);
      MT201.U0090 = new SwiftTagSubItemDefinition("Line4", "Line with a maximum of 35 SWIFT characters");
      MT201.U0090.Mandatory = false;
      MT201.U008C.Elements.Add((SwiftDefinitionElement) MT201.U0090);
      MT201.U0091 = new SwiftTagSubItemDefinition("Line5", "Line with a maximum of 35 SWIFT characters");
      MT201.U0091.Mandatory = false;
      MT201.U008C.Elements.Add((SwiftDefinitionElement) MT201.U0091);
      MT201.U0092 = new SwiftTagSubItemDefinition("Line6", "Line with a maximum of 35 SWIFT characters");
      MT201.U0092.Mandatory = false;
      MT201.U008C.Elements.Add((SwiftDefinitionElement) MT201.U0092);
      MT201.U0015.Elements.Add((SwiftDefinitionElement) MT201.U008C);
      MT201.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT201.U0015);
    }

    public class Tag53B : SwiftTagWrapper
    {
      public string Value
      {
        get
        {
          return this.GetValue();
        }
        set
        {
          this.SetValue("53B", value);
        }
      }

      internal Tag53B(SwiftElement parent, int index, SwiftDefinitionElement definition)
        : base(parent, index, definition)
      {
      }
    }

    public class Transaction_SequenceClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT201.U0015;
        }
      }

      [Description("Transaction Reference Number")]
      public Tag20 TransactionReferenceNumber_20
      {
        get
        {
          return new Tag20((SwiftElement) this, 0, (SwiftDefinitionElement) MT201.U0016);
        }
      }

      [Description("Transaction Reference Number")]
      public Tag20 Tag20_TransactionReferenceNumber
      {
        get
        {
          return this.TransactionReferenceNumber_20;
        }
      }

      [Description("Currency Code Amount")]
      public Tag32B CurrencyCodeAmount_32B
      {
        get
        {
          return new Tag32B((SwiftElement) this, 0, (SwiftDefinitionElement) MT201.U0018);
        }
      }

      [Description("Currency Code Amount")]
      public Tag32B Tag32B_CurrencyCodeAmount
      {
        get
        {
          return this.CurrencyCodeAmount_32B;
        }
      }

      [Description("Intermediary")]
      public Tag56A Intermediary_56A
      {
        get
        {
          return new Tag56A((SwiftElement) this, 0, (SwiftDefinitionElement) MT201.U001C);
        }
      }

      [Description("Intermediary")]
      public Tag56A Tag56A_Intermediary
      {
        get
        {
          return this.Intermediary_56A;
        }
      }

      [Description("Intermediary")]
      public Tag56D Intermediary_56D
      {
        get
        {
          return new Tag56D((SwiftElement) this, 0, (SwiftDefinitionElement) MT201.U001F);
        }
      }

      [Description("Intermediary")]
      public Tag56D Tag56D_Intermediary
      {
        get
        {
          return this.Intermediary_56D;
        }
      }

      [Description("Account With Institution")]
      public Tag57A AccountWithInstitution_57A
      {
        get
        {
          return new Tag57A((SwiftElement) this, 0, (SwiftDefinitionElement) MT201.U0082);
        }
      }

      [Description("Account With Institution")]
      public Tag57A Tag57A_AccountWithInstitution
      {
        get
        {
          return this.AccountWithInstitution_57A;
        }
      }

      [Description("Account With Institution")]
      public MT201.Transaction_SequenceClass.Tag57B AccountWithInstitution_57B
      {
        get
        {
          return new MT201.Transaction_SequenceClass.Tag57B((SwiftElement) this, 0, (SwiftDefinitionElement) MT201.U0086);
        }
      }

      [Description("Account With Institution")]
      public MT201.Transaction_SequenceClass.Tag57B Tag57B_AccountWithInstitution
      {
        get
        {
          return this.AccountWithInstitution_57B;
        }
      }

      [Description("Account With Institution")]
      public Tag57D AccountWithInstitution_57D
      {
        get
        {
          return new Tag57D((SwiftElement) this, 0, (SwiftDefinitionElement) MT201.U0089);
        }
      }

      [Description("Account With Institution")]
      public Tag57D Tag57D_AccountWithInstitution
      {
        get
        {
          return this.AccountWithInstitution_57D;
        }
      }

      [Description("Sender to Receiver Information")]
      public Tag72 SenderToReceiverInformation_2_72
      {
        get
        {
          return new Tag72((SwiftElement) this, 0, (SwiftDefinitionElement) MT201.U008C);
        }
      }

      [Description("Sender to Receiver Information")]
      public Tag72 Tag72_SenderToReceiverInformation_2
      {
        get
        {
          return this.SenderToReceiverInformation_2_72;
        }
      }

      internal Transaction_SequenceClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public class Tag57B : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("57B", value);
          }
        }

        internal Tag57B(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }
    }
  }
}
